// TerminalDlg.h : header file
//

#if !defined(AFX_TERMINALDLG_H__7F43B367_F460_11D7_9BE3_C9887D666630__INCLUDED_)
#define AFX_TERMINALDLG_H__7F43B367_F460_11D7_9BE3_C9887D666630__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DrvNumCom.h"
#include "SampleCtrl.h"


/////////////////////////////////////////////////////////////////////////////
// CTerminalDlg dialog

class CTerminalDlg : public CDialog
{
public:
    int				m_nChanIndex;
    CString         m_strPathName;
    CString         m_strDbName;
    CDrvNumCom		ComDevice;
	CSampleCtrl     SampleCtrl;

// Construction
public:
	CTerminalDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTerminalDlg)
	enum { IDD = IDD_DIALOG1 };
	CEdit	m_Edit1;
	CEdit	m_Edit2;
	CString	m_strProductType;
	CString	m_strChannel;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTerminalDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON           m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTerminalDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnConnectComm();
	afx_msg void OnStartSample();
	//}}AFX_MSG
    afx_msg void OnDbBackup(WPARAM wParam, LPARAM lParam);
	afx_msg void OnSetDeviceMinute(WPARAM wParam, LPARAM lParam);
	afx_msg void OnSampleChannel(WPARAM wParam, LPARAM lParam);

	DECLARE_MESSAGE_MAP()

private:
    void SetButtonStyle();

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TERMINALDLG_H__7F43B367_F460_11D7_9BE3_C9887D666630__INCLUDED_)
